package com.passion.domain.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.passion.base.AbstractMpEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableLogic;

 /**
  * 【t_sys_uri】表实体类;
  * 表备注：系统接口管理表
  * @author ZhuYin<zyexplorej2ee@sina.com>
  * @since  2024年12月27日
  */
@ApiModel(value = "系统接口管理表")
@EqualsAndHashCode(callSuper = false)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_sys_uri")
public class SysUri extends AbstractMpEntity<SysUri, String> {

    /** 主键ID */
    @ApiModelProperty(name = "主键ID")
    @TableId
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "JDBC")
    private String id;
    
    /** 请求映射URI,即接口映射地址 */
    @ApiModelProperty(name = "请求映射URI,即接口映射地址")
    private String uri;
    
    /** 接口名称 */
    @ApiModelProperty(name = "接口名称")
    private String uriName;
    
    /** 接口描述信息 */
    @ApiModelProperty(name = "接口描述信息")
    private String uriDesc;
    
    /** 接口状态：normal-正常在用 abandoned-弃用 */
    @ApiModelProperty(name = "接口状态：normal-正常在用 abandoned-弃用")
    private String uriStatus;
    
    /** 接口负责人 */
    @ApiModelProperty(name = "接口负责人")
    private String author;
    
    /** 删除状态：0-正常 1-已被删除 */
    @ApiModelProperty(name = "删除状态：0-正常 1-已被删除")
    private String delFlag;
    
    /** 创建时间 */
    @ApiModelProperty(name = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    
    /** 更新时间 */
    @ApiModelProperty(name = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;
    
}
